flate2
A streaming compression/decompression library for Rust. The underlying
implementation by default uses miniz
but
can optionally be configured to use the system zlib, if available.
Supported formats:
- deflate
- zlib
- gzip
# Cargo.toml
[]
= "0.2"
Using zlib instead of miniz:
[]
= { = "0.2", = ["zlib"], = false }
Compression
extern crate flate2;
use *;
use Compression;
use ZlibEncoder;
Decompression
extern crate flate2;
use *;
use GzDecoder;
License
flate2-rs
is primarily distributed under the terms of both the MIT license and
the Apache License (Version 2.0), with portions covered by various BSD-like
licenses.
See LICENSE-APACHE, and LICENSE-MIT for details.